# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2023年02月23日
"""

import docx
from docx.shared import Cm
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
myDocument=docx.Document('散文名篇.docx')

myImage=myDocument.add_picture('1.png')
myImage.height=Cm(4)
myImage.width=Cm(3)

myDocument.paragraphs[-1].alignment=WD_PARAGRAPH_ALIGNMENT.CENTER

myDocument.save('02散文名篇.docx')

